import { sendFetch } from '@/api'
// 获取用户权限
const request = {
  p: ['get,/siginin'],
  r: params => {
    return sendFetch({
      url: '/signin',
      method: 'GET',
      params
    })
  }
}

// 模拟越权请求
const noAccess = {
  p: ['get,/noAccess'],
  r: params => {
    return sendFetch({
      url: '/noAccess',
      method: 'GET',
      params
    })
  }
}
export default {
  request,
  noAccess
}
